package com.read.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description 系统统一编码
 * @author sh-sunb6
 * @date 2019-02-20 10:18
 */
@Getter
@AllArgsConstructor
public enum RespEnum {

    SUCCESS(1, "成功"),
    FAIL(0, "失败"),

    ACCOUNT_PASSWORD_ERROR(100100, "账号或密码错误！"),
    ACCOUNT_LOCK_ERROR(100101, "账号已被锁定，请联系管理员！"),

    TOKEN_EMPTY(100200,"token为空，请先登录！"),
    TOKEN_FAILED(100201,"token验证失败，请重新登录!"),

    INTERNAL_ERROR(500, "服务器内部错误,请稍后再试！");

    private int code;

    private String msg;

}
